package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="zutuan_admin_user"
    ,catalog="zutuan_prot"
)
public class ZutuanAdminUser  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.ZutuanAdminUser";
	public static final String TABLE_NAME="zutuan_admin_user";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_username = "username"; 
	public static final String P_password = "password"; 
	public static final String P_departmentId = "departmentId"; 
	public static final String P_roleId = "roleId"; 

     private String id;
     private String username;
     private String password;
     private String departmentId;
     private String roleId;

    public ZutuanAdminUser() {
    }
    public ZutuanAdminUser(String id, String username, String password, String departmentId, String roleId) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.departmentId = departmentId;
        this.roleId = roleId;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="username", nullable=false, length=25)
    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="password", nullable=false, length=25)
    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="departmentID", nullable=false, length=36)
    public String getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }
    
    @Column(name="roleID", nullable=false, length=36)
    public String getRoleId() {
        return this.roleId;
    }
    
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


